import request from '@/utils/request'


/**查询供应商账单列表 */
export function list(params) {
  return request({
    url: '/distribution/billDistributor/list',
    params
  })
}

/**提现记录列表 */
export function billDistributorWithdrawList(params) {
    return request({
      url: '/distribution/billDistributorWithdraw/list',
      params
    })
  }

/**获取供应商资金 */
export function balance(params) {
    return request({
      url: '/distribution/fundsDistributor/balance',
      params
    })
  }

/**汇款 */
export function billDistributorWithdraw(data) {
    return request({
      url: '/distribution/billDistributorWithdraw/remit',
      method: 'post',
      data
    })
  }

  /**查询供应商账单业务详情 */
export function billDistributor(id) {
  return request({
    url: `/distribution/billDistributor/${id}`,
  })
}